package com.xiaotu.service.mysql;

import com.xiaotu.dao.mysql.MysqlStarMapper;
import com.xiaotu.entity.ActorAwardModel;
import com.xiaotu.entity.StarDeleteRecordModel;
import com.xiaotu.entity.StarModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhangxiao
 * @create 2021-09-23 9:06
 */
@Service
public class MysqlStarService {

    @Autowired
    private MysqlStarMapper mysqlStarMapper;

    public List<Integer> isExist(List<Integer> starids) {
        return mysqlStarMapper.isExist(starids);
    }

    public void batchInsert(List<StarModel> insertMysqlList) {
        mysqlStarMapper.batchInsert(insertMysqlList);
    }

    public void batchUpdate(List<StarModel> updateMysqlList) {
        mysqlStarMapper.batchUpdate(updateMysqlList);
    }

    public void clearStarAwards() {
        mysqlStarMapper.clearStarAwards();
    }

    public void batchInsertStarAwards(List<ActorAwardModel> actorAwardModels) {
        mysqlStarMapper.batchInsertStarAwards(actorAwardModels);
    }

    public void batchInsertDeleteRecord(List<StarDeleteRecordModel> list) {
        mysqlStarMapper.batchInsertDeleteRecord(list);
    }

    public void clearDeleteRecord() {
        mysqlStarMapper.clearDeleteRecord();
    }

    public void deleteNoUseStar() {
        mysqlStarMapper.deleteNoUseStar();
    }
}
